<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
        <input v-model="msg" />
        <input :value="msg" @input="msg=$event.target.value" />
        <br>
        <input type="checkbox" v-model="flag" />
        <input type="checkbox" :checked="flag" @change="flag=$event.target.checked" />
        <p>{{flag}}</p>
        <br>

        <input type="checkbox" value="1" v-model="list" />吃饭
        <input type="checkbox" value="2" v-model="list" />睡觉
        <input type="checkbox" value="3" v-model="list" />打豆豆
        <br>
        <p>{{list}}</p>


        
    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
      var vm = new Vue({
        el: '#app',
        data: {
            msg:'hello vue',
            flag:true,
            list:['1','2']
        },
        methods: {},
      })
    </script>
  </body>
</html>
